package Karaoke;

import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.util.Arrays;

import javax.swing.ButtonGroup;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.ScrollPaneConstants;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.JRadioButton;
import javax.swing.JTextPane;

import Test.Test1_1;

import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.FlowLayout;

public class Kara_main extends JFrame {

	private JPanel contentPane;
	private JPanel rightCardPane;
	private JTextField search;
	private JTable table_SelectAll;
	private JTable gender_table;
	private JTable age_table;
	private JTextField uid;
	private JTextField pwd;
	private JTextField textField_2;
	private JTextField textField_3;
	private final CardLayout cards = new CardLayout(0, 0);
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Kara_main frame = new Kara_main();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Kara_main() {
		setTitle(":: 401노래방 ::");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 800, 600);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		final JPanel rightSection = new JPanel();
		rightSection.setPreferredSize(new Dimension(270, 10));
		contentPane.add(rightSection, BorderLayout.EAST);
		rightSection.setLayout(cards);
		
		JPanel logout_panel = new JPanel();
		rightSection.add(logout_panel, "logout");
		logout_panel.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_2 = new JPanel();
		panel_2.setPreferredSize(new Dimension(10, 350));
		logout_panel.add(panel_2, BorderLayout.NORTH);
		panel_2.setLayout(new BorderLayout(0, 0));
		
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		panel_2.add(tabbedPane, BorderLayout.CENTER);
		
		JPanel mainPanel = new JPanel();
		tabbedPane.addTab("\uC804\uACE1\uAC80\uC0C9", null, mainPanel, null);
		mainPanel.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_Search = new JPanel();
		panel_Search.setPreferredSize(new Dimension(10, 40));
		mainPanel.add(panel_Search, BorderLayout.NORTH);
		
		search = new JTextField();
		search.setColumns(10);
		
		JButton BtnSearch = new JButton(" \uAC80 \uC0C9 ");
		GroupLayout gl_panel_Search = new GroupLayout(panel_Search);
		gl_panel_Search.setHorizontalGroup(
			gl_panel_Search.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panel_Search.createSequentialGroup()
					.addGap(21)
					.addComponent(search, GroupLayout.PREFERRED_SIZE, 141, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(ComponentPlacement.UNRELATED)
					.addComponent(BtnSearch)
					.addContainerGap(22, Short.MAX_VALUE))
		);
		gl_panel_Search.setVerticalGroup(
			gl_panel_Search.createParallelGroup(Alignment.LEADING)
				.addGroup(Alignment.TRAILING, gl_panel_Search.createSequentialGroup()
					.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
					.addGroup(gl_panel_Search.createParallelGroup(Alignment.BASELINE)
						.addComponent(search, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(BtnSearch))
					.addContainerGap())
		);
		panel_Search.setLayout(gl_panel_Search);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		mainPanel.add(scrollPane, BorderLayout.CENTER);
		
		table_SelectAll = new JTable();
		scrollPane.setViewportView(table_SelectAll);
		
		JPanel gender_Panel = new JPanel();
		tabbedPane.addTab("\uC131\uBCC4\uC560\uCC3D\uACE1", null, gender_Panel, null);
		gender_Panel.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_7 = new JPanel();
		panel_7.setPreferredSize(new Dimension(10, 40));
		gender_Panel.add(panel_7, BorderLayout.NORTH);
		
		
		ButtonGroup group = new ButtonGroup();
		
		JRadioButton isMale = new JRadioButton("\uB0A8");
		JRadioButton isFemale = new JRadioButton("\uC5EC");
		
		group.add(isMale);
		group.add(isFemale);
		
		
		GroupLayout gl_panel_7 = new GroupLayout(panel_7);
		gl_panel_7.setHorizontalGroup(
			gl_panel_7.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panel_7.createSequentialGroup()
					.addGap(59)
					.addComponent(isMale)
					.addGap(63)
					.addComponent(isFemale, GroupLayout.PREFERRED_SIZE, 48, GroupLayout.PREFERRED_SIZE)
					.addContainerGap(58, Short.MAX_VALUE))
		);
		gl_panel_7.setVerticalGroup(
			gl_panel_7.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panel_7.createSequentialGroup()
					.addContainerGap()
					.addGroup(gl_panel_7.createParallelGroup(Alignment.BASELINE)
						.addComponent(isMale)
						.addComponent(isFemale))
					.addContainerGap(11, Short.MAX_VALUE))
		);
		panel_7.setLayout(gl_panel_7);
		
		JScrollPane scrollPane_1 = new JScrollPane();
		scrollPane_1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		gender_Panel.add(scrollPane_1, BorderLayout.CENTER);
		
		gender_table = new JTable();
		scrollPane_1.setViewportView(gender_table);
		
		JPanel age_Panel = new JPanel();
		tabbedPane.addTab("\uC5F0\uB839\uBCC4\uC560\uCC3D\uACE1", null, age_Panel, null);
		age_Panel.setLayout(new BorderLayout(0, 0));
		
		JPanel Age_Pane = new JPanel();
		Age_Pane.setPreferredSize(new Dimension(10, 40));
		age_Panel.add(Age_Pane, BorderLayout.NORTH);
		Age_Pane.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		ButtonGroup group1 = new ButtonGroup();
		
		
		JRadioButton btn_10 = new JRadioButton("10\uB300");
		btn_10.setFont(new Font("10대", Font.PLAIN, 10));
		Age_Pane.add(btn_10);
		
		JRadioButton btn_20 = new JRadioButton("20\uB300");
		btn_20.setFont(new Font("20대", Font.PLAIN, 10));
		Age_Pane.add(btn_20);
		
		JRadioButton btn_30 = new JRadioButton("30\uB300");
		btn_30.setFont(new Font("30대", Font.PLAIN, 10));
		Age_Pane.add(btn_30);
		
		JRadioButton btn_40 = new JRadioButton("40\uB300");
		btn_40.setFont(new Font("40대", Font.PLAIN, 10));
		Age_Pane.add(btn_40);
		
		JRadioButton btn_50 = new JRadioButton("50\uB300");
		btn_50.setFont(new Font("50대", Font.PLAIN, 10));
		Age_Pane.add(btn_50);
		
		group1.add(btn_10);
		group1.add(btn_20);
		group1.add(btn_30);
		group1.add(btn_40);
		group1.add(btn_50);
		
		JScrollPane scpane_age = new JScrollPane();
		scpane_age.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		age_Panel.add(scpane_age, BorderLayout.CENTER);
		
		age_table = new JTable();
		scpane_age.setViewportView(age_table);
		
		JPanel panel_3 = new JPanel();
		panel_3.setPreferredSize(new Dimension(10, 200));
		logout_panel.add(panel_3, BorderLayout.SOUTH);
		
		uid = new JTextField();
		uid.setColumns(10);
		
		pwd = new JTextField();
		pwd.setColumns(10);
		
		JLabel txtPwd = new JLabel("\uBE44\uBC00\uBC88\uD638");
		
		JLabel txtUid = new JLabel("\uC544\uC774\uB514");
		
		JButton loginBtn = new JButton("\uB85C\uADF8\uC778");
		loginBtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				if( uid.getText().equals("asd") && pwd.getText().equals("asd") )
					cards.show(rightSection, "admin");
			}
		});
		loginBtn.setPreferredSize(new Dimension(90, 23));
		
		JButton joinBtn = new JButton("\uD68C\uC6D0\uAC00\uC785");
		joinBtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				Test1_1 t = new Test1_1();
				t.setVisible(true);
				
			}
		});
		joinBtn.setPreferredSize(new Dimension(90, 23));
		GroupLayout gl_panel_3 = new GroupLayout(panel_3);
		gl_panel_3.setHorizontalGroup(
			gl_panel_3.createParallelGroup(Alignment.TRAILING)
				.addGroup(gl_panel_3.createSequentialGroup()
					.addContainerGap(40, Short.MAX_VALUE)
					.addGroup(gl_panel_3.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_panel_3.createSequentialGroup()
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(loginBtn, GroupLayout.PREFERRED_SIZE, 98, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(ComponentPlacement.UNRELATED)
							.addComponent(joinBtn, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
						.addGroup(gl_panel_3.createSequentialGroup()
							.addGroup(gl_panel_3.createParallelGroup(Alignment.LEADING)
								.addComponent(txtPwd)
								.addComponent(txtUid))
							.addGap(18)
							.addGroup(gl_panel_3.createParallelGroup(Alignment.LEADING)
								.addComponent(uid, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
								.addComponent(pwd, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))))
					.addGap(38))
		);
		gl_panel_3.setVerticalGroup(
			gl_panel_3.createParallelGroup(Alignment.TRAILING)
				.addGroup(gl_panel_3.createSequentialGroup()
					.addGap(54)
					.addGroup(gl_panel_3.createParallelGroup(Alignment.BASELINE)
						.addComponent(txtUid)
						.addComponent(uid, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.UNRELATED)
					.addGroup(gl_panel_3.createParallelGroup(Alignment.BASELINE)
						.addComponent(pwd, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(txtPwd))
					.addPreferredGap(ComponentPlacement.RELATED, 36, Short.MAX_VALUE)
					.addGroup(gl_panel_3.createParallelGroup(Alignment.BASELINE)
						.addComponent(loginBtn, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(joinBtn, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addGap(35))
		);
		panel_3.setLayout(gl_panel_3);
		
		JPanel admin_panel = new JPanel();
		rightSection.add(admin_panel, "admin");
		admin_panel.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_10 = new JPanel();
		panel_10.setPreferredSize(new Dimension(10, 350));
		admin_panel.add(panel_10, BorderLayout.NORTH);
		
		JPanel panel_11 = new JPanel();
		panel_11.setPreferredSize(new Dimension(10, 200));
		admin_panel.add(panel_11, BorderLayout.SOUTH);
		
		JLabel label = new JLabel("관리자님 웰콤!");
		
		JButton button_13 = new JButton("로그아웃");
		button_13.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				cards.show(rightSection, "logout");
				
			}
		});
		GroupLayout gl_panel_11 = new GroupLayout(panel_11);
		gl_panel_11.setHorizontalGroup(
			gl_panel_11.createParallelGroup(Alignment.TRAILING)
				.addGroup(gl_panel_11.createSequentialGroup()
					.addContainerGap(46, Short.MAX_VALUE)
					.addGroup(gl_panel_11.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_panel_11.createSequentialGroup()
							.addGap(97)
							.addComponent(button_13, GroupLayout.PREFERRED_SIZE, 85, GroupLayout.PREFERRED_SIZE))
						.addComponent(label, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE))
					.addGap(42))
		);
		gl_panel_11.setVerticalGroup(
			gl_panel_11.createParallelGroup(Alignment.TRAILING)
				.addGroup(gl_panel_11.createSequentialGroup()
					.addGap(51)
					.addComponent(label)
					.addPreferredGap(ComponentPlacement.RELATED, 70, Short.MAX_VALUE)
					.addComponent(button_13)
					.addGap(41))
		);
		panel_11.setLayout(gl_panel_11);
		
		JPanel login_panel = new JPanel();
		rightSection.add(login_panel, "login");
		
		JPanel panel_13 = new JPanel();
		panel_13.setPreferredSize(new Dimension(10, 350));
		
		JPanel panel_14 = new JPanel();
		panel_14.setPreferredSize(new Dimension(10, 200));
		GroupLayout gl_login_panel = new GroupLayout(login_panel);
		gl_login_panel.setHorizontalGroup(
			gl_login_panel.createParallelGroup(Alignment.LEADING)
				.addComponent(panel_13, GroupLayout.PREFERRED_SIZE, 270, GroupLayout.PREFERRED_SIZE)
				.addComponent(panel_14, GroupLayout.PREFERRED_SIZE, 270, GroupLayout.PREFERRED_SIZE)
		);
		gl_login_panel.setVerticalGroup(
			gl_login_panel.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_login_panel.createSequentialGroup()
					.addComponent(panel_13, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					.addGap(1)
					.addComponent(panel_14, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
		);
		
		JLabel label_2 = new JLabel("\uC544\uC774\uB514");
		
		textField_2 = new JTextField();
		textField_2.setColumns(10);
		
		JLabel label_3 = new JLabel("\uBE44\uBC00\uBC88\uD638");
		
		textField_3 = new JTextField();
		textField_3.setColumns(10);
		
		JButton button_14 = new JButton(" \uB85C\uADF8\uC778 ");
		button_14.setPreferredSize(new Dimension(85, 23));
		
		JButton button_15 = new JButton("\uD68C\uC6D0 \uAC00\uC785");
		button_15.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
			}
		});
		GroupLayout gl_panel_14 = new GroupLayout(panel_14);
		gl_panel_14.setHorizontalGroup(
			gl_panel_14.createParallelGroup(Alignment.LEADING)
				.addGroup(Alignment.TRAILING, gl_panel_14.createSequentialGroup()
					.addContainerGap(46, Short.MAX_VALUE)
					.addGroup(gl_panel_14.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_panel_14.createSequentialGroup()
							.addComponent(label_2, GroupLayout.PREFERRED_SIZE, 36, GroupLayout.PREFERRED_SIZE)
							.addGap(30)
							.addComponent(textField_2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
						.addGroup(gl_panel_14.createSequentialGroup()
							.addComponent(label_3, GroupLayout.PREFERRED_SIZE, 48, GroupLayout.PREFERRED_SIZE)
							.addGap(18)
							.addComponent(textField_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
						.addGroup(gl_panel_14.createSequentialGroup()
							.addComponent(button_14, GroupLayout.PREFERRED_SIZE, 85, GroupLayout.PREFERRED_SIZE)
							.addGap(12)
							.addComponent(button_15, GroupLayout.PREFERRED_SIZE, 85, GroupLayout.PREFERRED_SIZE)))
					.addGap(42))
		);
		gl_panel_14.setVerticalGroup(
			gl_panel_14.createParallelGroup(Alignment.LEADING)
				.addGroup(Alignment.TRAILING, gl_panel_14.createSequentialGroup()
					.addContainerGap(47, Short.MAX_VALUE)
					.addGap(1)
					.addGroup(gl_panel_14.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_panel_14.createSequentialGroup()
							.addGap(3)
							.addComponent(label_2))
						.addComponent(textField_2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addGap(10)
					.addGroup(gl_panel_14.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_panel_14.createSequentialGroup()
							.addGap(3)
							.addComponent(label_3))
						.addComponent(textField_3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addGap(36)
					.addGroup(gl_panel_14.createParallelGroup(Alignment.LEADING)
						.addComponent(button_14, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(button_15))
					.addGap(42))
		);
		panel_14.setLayout(gl_panel_14);
		login_panel.setLayout(gl_login_panel);
		
		JPanel leftSection = new JPanel();
		contentPane.add(leftSection, BorderLayout.CENTER);
		leftSection.setLayout(new BorderLayout(0, 0));
		
		JPanel decoLabel = new JPanel();
		decoLabel.setPreferredSize(new Dimension(40, 200));
		leftSection.add(decoLabel, BorderLayout.SOUTH);
		decoLabel.setLayout(new BorderLayout(0, 0));
		
		JLabel lblNewLabel_1 = new JLabel("Speaker img");
		lblNewLabel_1.setIcon(new ImageIcon(Kara_main.class.getResource("/img/iTunes.png")));
		lblNewLabel_1.setPreferredSize(new Dimension(150, 15));
		decoLabel.add(lblNewLabel_1, BorderLayout.WEST);
		
		JLabel lblNewLabel_4 = new JLabel("");
		lblNewLabel_4.setIcon(new ImageIcon(Kara_main.class.getResource("/img/iTunes.png")));
		lblNewLabel_4.setPreferredSize(new Dimension(150, 15));
		decoLabel.add(lblNewLabel_4, BorderLayout.EAST);
		
		JPanel panel_4 = new JPanel();
		decoLabel.add(panel_4, BorderLayout.CENTER);
		panel_4.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_5 = new JPanel();
		panel_5.setPreferredSize(new Dimension(10, 30));
		panel_4.add(panel_5, BorderLayout.NORTH);
		
		JTextPane textPane = new JTextPane();
		textPane.setEditable(false);
		textPane.setPreferredSize(new Dimension(100, 21));
		GroupLayout gl_panel_5 = new GroupLayout(panel_5);
		gl_panel_5.setHorizontalGroup(
			gl_panel_5.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panel_5.createSequentialGroup()
					.addContainerGap()
					.addComponent(textPane, GroupLayout.PREFERRED_SIZE, 181, GroupLayout.PREFERRED_SIZE)
					.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
		);
		gl_panel_5.setVerticalGroup(
			gl_panel_5.createParallelGroup(Alignment.LEADING)
				.addComponent(textPane, GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
		);
		panel_5.setLayout(gl_panel_5);
		
		JPanel panel_6 = new JPanel();
		panel_4.add(panel_6, BorderLayout.CENTER);
		panel_6.setLayout(new GridLayout(0, 3, 3, 3));
		
		JButton button_1 = new JButton("1");
		button_1.setPreferredSize(new Dimension(30, 20));
		button_1.setHorizontalTextPosition(SwingConstants.LEFT);
		button_1.setFont(new Font("����", Font.BOLD, 20));
		panel_6.add(button_1);
		
		JButton button_2 = new JButton("2");
		button_2.setPreferredSize(new Dimension(30, 20));
		button_2.setHorizontalTextPosition(SwingConstants.LEFT);
		button_2.setFont(new Font("����", Font.BOLD, 20));
		panel_6.add(button_2);
		
		JButton button = new JButton("3");
		button.setPreferredSize(new Dimension(30, 20));
		button.setHorizontalTextPosition(SwingConstants.LEFT);
		button.setFont(new Font("����", Font.BOLD, 20));
		panel_6.add(button);
		
		JButton button_3 = new JButton("4");
		button_3.setPreferredSize(new Dimension(30, 20));
		button_3.setHorizontalTextPosition(SwingConstants.LEFT);
		button_3.setFont(new Font("����", Font.BOLD, 20));
		panel_6.add(button_3);
		
		JButton button_4 = new JButton("5");
		button_4.setPreferredSize(new Dimension(30, 20));
		button_4.setHorizontalTextPosition(SwingConstants.LEFT);
		button_4.setFont(new Font("����", Font.BOLD, 20));
		panel_6.add(button_4);
		
		JButton button_5 = new JButton("6");
		button_5.setPreferredSize(new Dimension(30, 20));
		button_5.setHorizontalTextPosition(SwingConstants.LEFT);
		button_5.setFont(new Font("����", Font.BOLD, 20));
		panel_6.add(button_5);
		
		JButton button_6 = new JButton("7");
		button_6.setPreferredSize(new Dimension(30, 20));
		button_6.setHorizontalTextPosition(SwingConstants.LEFT);
		button_6.setFont(new Font("����", Font.BOLD, 20));
		panel_6.add(button_6);
		
		JButton button_7 = new JButton("8");
		button_7.setPreferredSize(new Dimension(30, 20));
		button_7.setHorizontalTextPosition(SwingConstants.LEFT);
		button_7.setFont(new Font("����", Font.BOLD, 20));
		panel_6.add(button_7);
		
		JButton button_8 = new JButton("9");
		button_8.setPreferredSize(new Dimension(30, 20));
		button_8.setHorizontalTextPosition(SwingConstants.LEFT);
		button_8.setFont(new Font("����", Font.BOLD, 20));
		panel_6.add(button_8);
		
		JButton button_9 = new JButton("시작");
		button_9.setPreferredSize(new Dimension(30, 20));
		button_9.setHorizontalTextPosition(SwingConstants.LEFT);
		button_9.setFont(new Font("����", Font.BOLD, 12));
		panel_6.add(button_9);
		
		JButton button_10 = new JButton("0");
		button_10.setPreferredSize(new Dimension(30, 20));
		button_10.setHorizontalTextPosition(SwingConstants.LEFT);
		button_10.setFont(new Font("����", Font.BOLD, 20));
		panel_6.add(button_10);
		
		JButton button_11 = new JButton("취소");
		button_11.setPreferredSize(new Dimension(30, 20));
		button_11.setHorizontalTextPosition(SwingConstants.LEFT);
		button_11.setFont(new Font("����", Font.BOLD, 12));
		panel_6.add(button_11);
		
		JPanel top = new JPanel();
		top.setPreferredSize(new Dimension(10, 60));
		leftSection.add(top, BorderLayout.NORTH);
		
		JLabel lblNewLabel_2 = new JLabel("");
		lblNewLabel_2.setIcon(new ImageIcon(Kara_main.class.getResource("/img/TOPIMG copy.jpg")));
		top.add(lblNewLabel_2);
		
		JPanel playPanel = new JPanel();
		leftSection.add(playPanel, BorderLayout.CENTER);
	}
}
